#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2024/3/2 19:01
# @Author  : 1823218990@qq.com
# @File    : main
# @Software: Pycharm
"""
-ss 表示开始时间   时间格式为(00:00:30)
-to 表示结束时间   时间格式为(00:05:30)
-t  表示持续时    时间格式为(00:05:00)
-r <rate> 帧率   eg: -r 15
-b <bitrate> 码率 eg: -b 400k
    -b:v 视频码率
    -b:a 音频码率
    -b:v 400k -b:a 192k  修改音视频
-s 480x270  视频分辨率
-ar 44100   音频采样率 44100=44.1Hz

-vf "hqdn3d"  降低噪声
"""
import sys
import os
real_cfile = os.path.abspath(__file__)
real_path = os.path.dirname(real_cfile)
sys.path.append(real_path)

try:
    from vccut import VideaCut
except Exception as e:
    print(e)


def get_info():
    inputfile = "D:\\workspace\\video_opencv\\01.mp4"
    vc = VideaCut(inputfile=inputfile)
    vc.summary_info()


def test_lyf():
    pass


def test_to_720p():
    inputfile = "D:\\workspace\\video_opencv\\01.mp4"
    outputfile = "D:\\workspace\\video_opencv\\01_720p_vf.mp4"
    vc = VideaCut(inputfile=inputfile, outputfile=outputfile)
    vc.tranform_rratio()


if __name__ == '__main__':
    # get_info()
    test_to_720p()